package com.googlecode.monitoring.model;

import java.io.Serializable;


public class EventTime implements Serializable {
	// private EventTimeType type;
	private String cron;

	public EventTime() {
		super();
	}

	public EventTime(String cron) {
		this.cron = cron;
	}

	public String getCron() {
		return cron;
	}

	public void setCron(String cron) {
		this.cron = cron;
	}


	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder();
		sb.append("EventTime");
		sb.append("{cron='").append(cron).append('\'');
		sb.append('}');
		return sb.toString();
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}

		EventTime eventTime = (EventTime) o;

		if (cron != null ? !cron.equals(eventTime.cron) : eventTime.cron != null) {
			return false;
		}

		return true;
	}

	@Override
	public int hashCode() {
		return cron != null ? cron.hashCode() : 0;
	}
}
